import React from "react";
import { View, Text } from "react-native";
import { useTheme } from "@/contexts/ThemeContext";
import { createStyles } from "./index.style";
import ShareGroup from "./ShareGroup";
import QuitGroup from "./QuitGroup";
import DeleteChatRecords from "./DeleteChatRecords";

const ActionsButton = () => {
  const { colors } = useTheme();
  const styles = createStyles(colors);

  return (
    <View style={styles.container}>
      <View style={styles.header}>
        <Text style={styles.title}>群聊操作</Text>
      </View>

      <View style={styles.actionsContainer}>
        <ShareGroup />
        <DeleteChatRecords />
        <QuitGroup />
      </View>
    </View>
  );
};

export default ActionsButton;
